package com.dailyblue.java.project.smbms.user.feign.fallback;

import com.dailyblue.java.commons.util.JsonResult;
import com.dailyblue.java.commons.util.ResultTool;
import com.dailyblue.java.project.smbms.user.feign.RoleFeign;
import org.springframework.stereotype.Component;

@Component
public class RoleFeignFallback implements RoleFeign {
    @Override
    public JsonResult find(int id) {
        return ResultTool.fail("服务器访问失败");
    }
}
